/*
 * Copyright 2010 Stefan Bachert, wwwApp, http://gwtworld.de
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@eval decorFont a1.decor.Decor.getFont();
@eval decorFixedFont a1.decor.Decor.getFixedFont();
@eval decorEditFont a1.decor.Decor.getEditFont();
@eval decorLabelFont a1.decor.Decor.getLabelFont();
@eval decorButtonFont a1.decor.Decor.getButtonFont();
@eval decorCaptionFont a1.decor.Decor.getCaptionFont();
@eval decorTabFont a1.decor.Decor.getTabFont();
@eval decorMenuFont a1.decor.Decor.getMenuFont();

@eval decorColor a1.decor.Decor.getColor();
@eval decorLinkColor a1.decor.Decor.getLinkColor();
@eval decorColorDisabled a1.decor.Decor.getColorDisabled();
@eval decorColorError a1.decor.Decor.getColorError();
@eval decorColorHint a1.decor.Decor.getColorHint();

@eval decorMenuColor a1.decor.Decor.getMenuColor();
@eval decorEditColor a1.decor.Decor.getEditColor();
@eval decorLabelColor a1.decor.Decor.getLabelColor();
@eval decorButtonColor a1.decor.Decor.getButtonColor();
@eval decorCaptionColor a1.decor.Decor.getCaptionColor();
@eval decorTabColor a1.decor.Decor.getTabColor();

@eval decorBackground a1.decor.Decor.getBackground();

@eval decorSelectionMenu a1.decor.Decor.getSelectionMenu();
@eval decorSelectionRow a1.decor.Decor.getSelectionRow();
@eval decorSelectionColumn a1.decor.Decor.getSelectionColumn();
@eval decorSelectionCell a1.decor.Decor.getSelectionCell();

@eval decorMargin a1.decor.Decor.getMargin();

@eval decorBorder a1.decor.Decor.getBorder();
@eval decorBorderRaised a1.decor.Decor.getBorderRaised();
@eval decorBorderPressed a1.decor.Decor.getBorderPressed();
@eval decorBorderNormal a1.decor.Decor.getBorderNormal();
@eval decorBorderFocused a1.decor.Decor.getBorderFocused();
@eval decorBorderImportant a1.decor.Decor.getBorderImportant();
@eval decorBorderNorth a1.decor.Decor.getBorderTabNorth();
@eval decorBorderEast a1.decor.Decor.getBorderTabEast();
@eval decorBorderSouth a1.decor.Decor.getBorderTabSouth();
@eval decorBorderWest a1.decor.Decor.getBorderTabWest();

@eval decorPadding a1.decor.Decor.getPadding();
@eval decorEditPadding a1.decor.Decor.getEditPadding();
@eval decorCaptionPadding a1.decor.Decor.getCaptionPadding();
@eval decorMenuPadding a1.decor.Decor.getMenuPadding();
@eval decorTextPadding a1.decor.Decor.getTextPadding();
@eval decorTextPressedPadding a1.decor.Decor.getTextPressedPadding();
@eval decorBoxLabelPadding a1.decor.Decor.getBoxLabelPadding();
@eval decorDialogPadding a1.decor.Decor.getDialogPadding();


body, table td, select {
  font: decorFont;
}
pre {
  font: decorFixedFont;
}

body {
  color: decorColor;
  margin: decorMargin;
  border: decorBorder;
  padding: decorPadding;
  background: decorBackground;
}
a, a:visited, a:hover {
  color: decorLinkColor;
}


@external gwt-DialogBox, gwt-ToggleButton-up-disabled, gwt-Hyperlink, datePickerMonthSelector;
@external suggestPopupBottomCenter, suggestPopupTopCenter,menuPopupTopLeftInner,gwt-MenuBarPopup;
@external gwt-ToggleButton-up-hovering, gwt-MenuItem,gwt-PushButton-up-hovering,datePickerWeekendLabel;
@external gwt-RadioButton-disabled,gwt-TextArea,gwt-SuggestBoxPopup,gwt-ToggleButton-down-hovering;
@external item-selected,gwt-DatePicker,dialogMiddleCenter,gwt-TreeItem,gwt-DateBox,menuPopupTopRightInner;
@external Caption,suggestPopupBottomLeftInner,gwt-MenuBar-vertical,datePickerDayIsValue,gwt-PasswordTextBox;
@external dialogBottomLeft,gwt-PopupPanelGlass,gwt-TreeItem-selected,menuPopupMiddleRight;
@external datePickerDayIsToday,menuPopupBottomRight,datePickerDays,dialogTopLeft,gwt-Button;
@external datePickerWeekdayLabel,datePickerMonth,dialogBottomRight,suggestPopupMiddleRight;
@external gwt-MenuBar-horizontal,item,datePickerDayIsDisabled,gwt-PushButton-up,gwt-Image,gwt-MenuItem-selected;
@external gwt-RadioButton,gwt-ListBox,gwt-PushButton-up-disabled,gwt-Frame,gwt-PasswordTextBox-readonly;
@external menuPopupTopCenter,menuSeparatorInner,suggestPopupTopRightInner,menuPopupBottomRightInner;
@external suggestPopupBottomLeft,gwt-MenuItemSeparator,gwt-FileUpload,gwt-TextArea-readonly,menuPopupTopRight;
@external gwt-SuggestBox,datePickerDayIsHighlighted,subMenuIcon-selected,gwt-MenuBar,gwt-HTML,gwt-PushButton-down;
@external gwt-Tree,gwt-CheckBox-disabled,menuPopupBottomLeft,suggestPopupTopRight,gwt-PushButton-down-disabled;
@external dateBoxPopup,menuPopupBottomLeftInner,gwt-ToggleButton-up,gwt-PopupPanel,dialogTopRight,gwt-CheckBox;
@external suggestPopupMiddleLeft,menuPopupMiddleLeft,gwt-PushButton-down-hovering,menuPopupBottomCenter;
@external suggestPopupBottomRightInner,datePickerDayIsValueAndHighlighted,gwt-Label,gwt-ToggleButton-down-disabled;
@external gwt-ToggleButton-down,menuPopupTopLeft,datePickerDayIsWeekend,suggestPopupTopLeftInner;
@external datePickerNextButton,gwt-TextBox,dialogBottomCenter,dialogTopCenter,dialogMiddleRight;
@external datePickerDayIsFiller,gwt-TextBox-readonly,gwt-Label-disabled,suggestPopupBottomRight,datePickerDay;
@external dialogMiddleLeft,dateBoxFormatError,suggestPopupTopLeft,datePickerPreviousButton,subMenuIcon;


.gwt-Button {
  margin: 0;
  text-decoration: none;
  cursor: pointer;
  cursor: hand;

  padding: decorTextPadding;
  font: decorButtonFont;
  border: decorBorderRaised;
}

@sprite .gwt-Button:active {gwt-image:"buttonPressed";}
@sprite .gwt-Button,.gwt-Button[disabled] {gwt-image:"button";background-position: left top, right top, right bottom, left bottom;}

.gwt-Button:active {
  padding: decorTextPressedPadding;
  border: decorBorderPressed;
}

.gwt-Button[disabled]
{
  cursor: default;
  border: decorBorderRaised;
  color: decorColorDisabled;
  padding: decorTextPadding;
}

.gwt-CheckBox {
}
.gwt-CheckBox-disabled {
  color: decorColorDisabled;
}

label { 
  font: decorLabelFont;
  color: decorLabelColor;
}

.gwt-CheckBox label,
.gwt-RadioButton label
{
  display:inline-block;
  vertical-align:top;
  padding: decorBoxLabelPadding;
}

.gwt-CheckBox-disabled label,
.gwt-RadioButton-disabled label
{
  color: decorColorDisabled;
}


@sprite .gwt-DialogBox .Caption {gwt-image: "caption";}
.gwt-DialogBox .Caption {
  cursor: default;
  padding: decorCaptionPadding;
}
.gwt-DialogBox .dialogMiddleCenter {
  padding: decorDialogPadding;
}
@sprite .dialogMiddleCenter {gwt-image: "dialog";}

@sprite .gwt-DialogBox .dialogTopLeft {gwt-image: "diaBorderNW";}
@sprite .gwt-DialogBox .dialogTopCenter {gwt-image: "diaBorderN";}
@sprite .gwt-DialogBox .dialogTopRight {gwt-image: "diaBorderNE";}
@sprite .gwt-DialogBox .dialogMiddleLeft {gwt-image: "diaBorderW";}
@sprite .gwt-DialogBox .dialogMiddleRight {gwt-image: "diaBorderE";}
@sprite .gwt-DialogBox .dialogBottomLeft {gwt-image: "diaBorderSW";}
@sprite .gwt-DialogBox .dialogBottomCenter {gwt-image: "diaBorderS";}
@sprite .gwt-DialogBox .dialogBottomRight {gwt-image: "diaBorderSE";}

.gwt-FileUpload {
  font: decorFont;
}

.gwt-Frame {
  border: decorBorderImportant;
}


.gwt-HTML {
}

.gwt-Hyperlink {
}

.gwt-Image {
}

.gwt-Label {
  font: decorLabelFont;
  color: decorLabelColor;
}
.gwt-Label-disabled {
  color: decorColorDisabled;
}

.gwt-ListBox {
}

.gwt-MenuBar {
  cursor: default;
}
.gwt-MenuBar .gwt-MenuItem {
  cursor: default;
}
.gwt-MenuBar .gwt-MenuItem-selected {
  background: decorSelectionMenu;
}

@sprite .gwt-MenuBar-horizontal {gwt-image:"menubarH";}

.gwt-MenuBar-horizontal {
  border: decorBorderNormal;
}
.gwt-MenuBar-horizontal .gwt-MenuItem {
  padding: decorMenuPadding;
  vertical-align: bottom;
  color: decorMenuColor;
  font-weight: decorMenuFont; 
}

.gwt-MenuBar-horizontal .gwt-MenuItemSeparator {
  width: 1px;
  padding: 0px;
  margin: 0px;
  border: 0px;
  border-left: decorBorderNormal;
  background: transparent;
}
.gwt-MenuBar-horizontal .gwt-MenuItemSeparator .menuSeparatorInner {
  width: 1px;
  height: 1px;
  background: transparent;
}
@sprite .gwt-MenuBar-vertical tbody {gwt-image:"menubarV";}

.gwt-MenuBar-vertical {
}

.gwt-MenuBar-vertical table {
  border-collapse: collapse;
}

.gwt-MenuBar-vertical .gwt-MenuItem {
  padding: decorMenuPadding;
}

.gwt-MenuBar-vertical .gwt-MenuItemSeparator {
  padding: decorMenuPadding;
}
.gwt-MenuBar-vertical .gwt-MenuItemSeparator .menuSeparatorInner {
  height: 1px;
  padding: 0px;
  border: 0px;
  border-top: decorBorderNormal;
  background: transparent;
  overflow: hidden;
}
.gwt-MenuBar-vertical .subMenuIcon {
  padding-right: 4px;
}
.gwt-MenuBar-vertical .subMenuIcon-selected {
  background: decorSelectionMenu;
}
.gwt-MenuBarPopup {
  margin: 0px;
}
@sprite .gwt-MenuBarPopup .menuPopupTopCenter {gwt-image:"menuN";}
@sprite .gwt-MenuBarPopup .menuPopupTopRight {gwt-image:"menuNE";}
@sprite .gwt-MenuBarPopup .menuPopupTopRightInner {gwt-image:"menuNE";}
@sprite .gwt-MenuBarPopup .menuPopupMiddleRight {gwt-image:"menuE";}
@sprite .gwt-MenuBarPopup .menuPopupBottomRight {gwt-image:"menuSE";}
@sprite .gwt-MenuBarPopup .menuPopupBottomRightInner {gwt-image:"menuSE";}
@sprite .gwt-MenuBarPopup .menuPopupBottomCenter {gwt-image:"menuS";}
@sprite .gwt-MenuBarPopup .menuPopupBottomLeft {gwt-image:"menuSW";}
@sprite .gwt-MenuBarPopup .menuPopupBottomLeftInner {gwt-image:"menuSW";}
@sprite .gwt-MenuBarPopup .menuPopupMiddleLeft {gwt-image:"menuW";}
@sprite .gwt-MenuBarPopup .menuPopupTopLeft {gwt-image:"menuNW";}
@sprite .gwt-MenuBarPopup .menuPopupTopLeftInner {gwt-image:"menuNW";}


.gwt-PasswordTextBox {
  font: decorEditFont;
  padding: decorTextPadding;
}
.gwt-PasswordTextBox-readonly {
  font: decorEditFont;
  color: decorColorDisabled;
}

@sprite .gwt-PopupPanel {gwt-image:"dialog";}

.gwt-PopupPanel {
  border: decorBorderImportant;
  padding: decorDialogPadding;
}


.gwt-PopupPanelGlass {
  background-color: #000;
  opacity: 0.3;
  filter: literal('alpha(opacity=30)');
}

@sprite .gwt-PushButton-up,
.gwt-PushButton-up-hovering,
.gwt-PushButton-up-disabled {gwt-image:"button";}

@sprite .gwt-PushButton-down,
.gwt-PushButton-down-hovering,
.gwt-PushButton-down-disabled {gwt-image:"buttonPressed";}

.gwt-PushButton-up,
.gwt-PushButton-up-hovering,
.gwt-PushButton-up-disabled,
.gwt-PushButton-down,
.gwt-PushButton-down-hovering,
.gwt-PushButton-down-disabled {
  margin: 0;
  text-decoration: none;
}
.gwt-PushButton-up,
.gwt-PushButton-up-hovering,
.gwt-PushButton-up-disabled {
  padding: decorTextPadding;
  border: decorBorderRaised;
}
.gwt-PushButton-up-disabled {
  color: decorColorDisabled;
}
.gwt-PushButton-up {
  cursor: pointer;
  cursor: hand;
}
/*
.gwt-PushButton-up-hovering {
  border: 1px outset;
  cursor: pointer;
  cursor: hand;
}
*/
.gwt-PushButton-up-disabled {
  color: decorColorDisabled;
  cursor: default;
  opacity: .5;
  filter: literal('alpha(opacity=40)');
  zoom: 1;
}
.gwt-PushButton-down,
.gwt-PushButton-down-hovering,
.gwt-PushButton-down-disabled {
  padding: decorTextPressedPadding;
  border: decorBorderPressed;
}
.gwt-PushButton-down {
  cursor: pointer;
  cursor: hand;
}
/*.gwt-PushButton-down-hovering {
  border: 1px inset;
  border-color: #9cf #69e #69e #7af;
  cursor: pointer;
  cursor: hand;
}*/
.gwt-PushButton-down-disabled {
  cursor: default;
  opacity: 0.5;
  filter: literal('alpha(opacity=40)');
  zoom: 1;
}

.gwt-RadioButton {
}
.gwt-RadioButton-disabled {
  color: decorColorDisabled;
}


.gwt-SuggestBox {
  padding: decorTextPadding;
}
.gwt-SuggestBoxPopup {
  margin-left: 1em;
}
.gwt-SuggestBoxPopup .item {
  padding: decorMenuPadding;
  color: decorMenuColor;
  cursor: default;
}
.gwt-SuggestBoxPopup .item-selected {
  background: decorSelectionMenu;
}

@sprite .gwt-SuggestBoxPopup .suggestPopupTopCenter {gwt-image:"borderN";}
@sprite .gwt-SuggestBoxPopup .suggestPopupTopRight, .gwt-SuggestBoxPopup .suggestPopupTopRightInner {gwt-image:"borderNE";}
@sprite .gwt-SuggestBoxPopup .suggestPopupMiddleRight {gwt-image:"borderE";}
@sprite .gwt-SuggestBoxPopup .suggestPopupBottomRight, .gwt-SuggestBoxPopup .suggestPopupBottomRightInner {gwt-image:"borderSE";}
@sprite .gwt-SuggestBoxPopup .suggestPopupBottomCenter {gwt-image:"borderS";}
@sprite .gwt-SuggestBoxPopup .suggestPopupBottomLeft, .gwt-SuggestBoxPopup .suggestPopupBottomLeftInner {gwt-image:"borderSW";}
@sprite .gwt-SuggestBoxPopup .suggestPopupMiddleLeft {gwt-image:"borderW";}
@sprite .gwt-SuggestBoxPopup .suggestPopupTopLeft, .gwt-SuggestBoxPopup .suggestPopupTopLeftInner {gwt-image:"borderNW";}

.gwt-TextArea {
  padding: decorEditPadding;
}
.gwt-TextArea-readonly {
  color: decorColorDisabled;
}

.gwt-TextArea:focus {
	border: decorBorderFocused;
}

.gwt-TextBox {
  font: decorEditFont;
  padding: decorEditPadding;
  border: decorBorderNormal;
}
.gwt-TextBox:focus {
  border: decorBorderFocused;
}

@sprite .gwt-TextBox {gwt-image:"edit";}
.gwt-TextBox-readonly {
  color: decorColorDisabled;
}

@sprite .gwt-ToggleButton-up,
.gwt-ToggleButton-up-hovering,
.gwt-ToggleButton-up-disabled {gwt-image:"button"; background-position: left top right bottom;}

@sprite .gwt-ToggleButton-down,
.gwt-ToggleButton-down-hovering,
.gwt-ToggleButton-down-disabled {gwt-image:"buttonPressed";background-position: left top right bottom;}

.gwt-ToggleButton-up,
.gwt-ToggleButton-up-hovering,
.gwt-ToggleButton-up-disabled,
.gwt-ToggleButton-down,
.gwt-ToggleButton-down-hovering,
.gwt-ToggleButton-down-disabled {
  margin: 0;
  text-decoration: none;
}
.gwt-ToggleButton-up,
.gwt-ToggleButton-up-hovering,
.gwt-ToggleButton-up-disabled {
  padding: decorTextPadding;
  border: decorBorderRaised;
}
.gwt-ToggleButton-up {
  cursor: pointer;
  cursor: hand;
}
/*
.gwt-ToggleButton-up-hovering {
  border: 1px outset;
  border-color: #9cf #69e #69e #7af;
  cursor: pointer;
  cursor: hand;
}*/
.gwt-ToggleButton-up-disabled {
  aborder: 1px outset #ccc;
  cursor: default;
  opacity: .5;
  zoom: 1;
  filter: literal('alpha(opacity=40)');
}
.gwt-ToggleButton-down,
.gwt-ToggleButton-down-hovering,
.gwt-ToggleButton-down-disabled {
  padding: decorTextPressedPadding;
}
.gwt-ToggleButton-down {
  cursor: pointer;
  cursor: hand;
  border: decorBorderPressed;
}
.gwt-ToggleButton-down-hovering {
  cursor: pointer;
  cursor: hand;
  border: decorBorderPressed;
}
.gwt-ToggleButton-down-disabled {
  cursor: default;
  opacity: .5;
  zoom: 1;
  filter: literal('alpha(opacity=40)');
  border: decorBorderPressed;
}

.gwt-Tree .gwt-TreeItem {
  padding: 1px 0px;
  margin: 0px;
  white-space: nowrap;
  cursor: hand;
  cursor: pointer;
}
.gwt-Tree .gwt-TreeItem-selected {
  background: decorSelectionRow;
}
.gwt-TreeItem .gwt-RadioButton input,
.gwt-TreeItem .gwt-CheckBox input {
  margin-left: 0px;
}

.gwt-DateBox input {
  width: 9em;
}
.dateBoxFormatError {
  background: decorColorError;
}
.dateBoxPopup {
}

.gwt-DatePicker {
  border: decorBorderNormal;
  cursor: default;
}
.gwt-DatePicker td,
.datePickerMonthSelector td:focus {
  outline: none
}
@sprite .datePickerDays {gwt-image:"dialog";}
.datePickerDays {
  width: 100%;
}
.datePickerDay,
.datePickerWeekdayLabel,
.datePickerWeekendLabel {
  font: decorFontLabel;
  text-align: center;
  padding: decorTextPadding;
  outline: none;
}
@sprite .datePickerWeekdayLabel,
.datePickerWeekendLabel {gwt-image:"dialog2";}

.datePickerWeekdayLabel,
.datePickerWeekendLabel {
  padding: decorTextPadding;
  cursor: default;
}
.datePickerDay {
  padding: decorTextPadding;
  cursor: hand;
  cursor: pointer;
}
.datePickerDayIsToday {
  border: decorBorderNormal;
  padding: decorTextPadding;
}
.datePickerDayIsWeekend {
  background: #EEEEEE;
}
.datePickerDayIsFiller {
  color: decorColorDisabled;
}
.datePickerDayIsValue {
  background: #aaccee;
}
.datePickerDayIsDisabled {
  color: decorColorDisabled;
  font-style: italic;
}
.datePickerDayIsHighlighted {
  background: #F0E68C;
}
.datePickerDayIsValueAndHighlighted {
  background: #bbddd9;
}
.datePickerMonthSelector {
  background: #C3D9FF;
  width: 100%;
}
td.datePickerMonth {
  text-align: center;
  vertical-align: center;
  white-space: nowrap;
  font-weight: bold;
  color: blue;
}
.datePickerPreviousButton,
.datePickerNextButton {
  font-size: 120%;
  line-height: 1em;
  color: blue;
  cursor: hand;
  cursor: pointer;
  padding: 0px 4px;
}
